<?php
defined( '_VALID_MOS' ) or die('<script>window.location.href="http://www.kinifurniture.com";</script>');
$adm_functions->is_admin_login();
$adm_menu='
<table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td class="menudottedline" width="40%">
			<div class="pathway"><img src="assets/admin/'.$SITE_LOGO_ADMIN.'"/></div>	</td>
		<td class="menudottedline" align="right">
			<table cellpadding="0" cellspacing="0" border="0" id="toolbar">
				<tr valign="middle" align="center">
					<td>&nbsp;</td>
					<td>
					<a class="toolbar" href="javascript:kliksubmit();">
						<img src="show_files/save.png"  alt="Save" name="save" title="Save" align="middle" border="0" />				<br />Save</a>
					</td>
					<td>&nbsp;</td>
					<td>
						<a class="toolbar" href="admin.php?show=agenda_manager">
						<img src="show_files/cancel.png"  alt="Cancel" name="cancel" title="Cancel" align="middle" border="0" />				<br />Cancel</a>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<br />
';
if ($msg=='1')	$error_message='Success Add Agenda Detail';

if($inp_title)
{
	$tanggal=time();
	$tanggal=date("Y-m-d H:i:s",$tanggal);
	$dbh->query("insert into news (
	title, 
	contents,
	url,
	status,
	target,
	entrydate,
	news_type
	) values (
	'$inp_title', 
	'$inp_content',
	'$inp_url',
	'$inp_active',
	'$inp_target',
	'$tanggal',
	'A'
	)");	
	echo '<script>alert("Added New Agenda");</script>';
	echo '<script>window.location.href="admin.php?show=agenda_manager";</script>';
}

?>